#@layout()
#define nav()
	#@studentNav()
#end
#define main()

	#for(x : project)
	
	
		<div class="panel panel-primary">
		<div class="panel-heading">
			<h4 class="panel-title">
				<a data-toggle="collapse" data-parent="#accordion" 
				   href="#collapse#(x.id)">
					#(x.name)
				</a>
			</h4>
		</div>
		<div id="collapse#(x.id)" class="panel-collapse collapse in">
		<div class="panel-body">
		<form class="form-horizontal" role="form" method="post" action="/student/changePeople" >
			<div class="form-group">
				<label for="project.projectId" class="col-sm-3 control-label" >项目编号</label>
					<div class="col-sm-8">
						<input class="form-control" id="name" name="changepeople.projectId" type="text"  value="#(x.projectId)" readonly="readonly">
					</div>
			</div>
			<div class="form-group">
				<label for="personsResponsibleName" class="col-sm-3 control-label" >负责人姓名</label>
					<div class="col-sm-8">
						<input class="form-control" id="personsResponsibleName" name="changepeople.personsResponsibleName" type="text"  value="#(session.User.name)" readonly="readonly">
					</div>
			</div>
			<div class="form-group">
				<label for="personsResponsibleNumber" class="col-sm-3 control-label" >负责人学号</label>
					<div class="col-sm-8">
						<input class="form-control" id="personsResponsibleNumber" name="project.personsResponsibleNumber" type="text"  value="#(session.User.userName)" readonly="readonly">
					</div>
			</div>
			#if(title == "团队成员变更申请")
				<div class="form-group">
					<label for="before" class="col-sm-3 control-label" >变更前成员</label>
						<div class="col-sm-8">
							 <input class="form-control" id="before" name="changepeople.before" type="text" value="#(x.otherPeople)" readonly="readonly" >
						</div>
				</div>
				<div class="form-group">
					<label for="after" class="col-sm-3 control-label" >变更后成员</label>
						<div class="col-sm-8">
							 <input class="form-control" id="after" name="changepeople.after" type="text"  >
						</div>
				</div>
			#else
				<div class="form-group">
					<label for="before" class="col-sm-3 control-label" >变更前教师</label>
						<div class="col-sm-8">
							 <input class="form-control" id="before" name="changepeople.before" type="text" value="#(x.teacherName)" readonly="readonly" >
						</div>
				</div>
				<div class="form-group">
					<label for="after" class="col-sm-3 control-label" >变更后教师</label>
						<div class="col-sm-8">
							 <input class="form-control" id="after" name="changepeople.after" type="text"  >
						</div>
				</div>
				<div class="form-group">
					<label for="title" class="col-sm-3 control-label" >变更后教师职称</label>
						<div class="col-sm-8">
							 <input class="form-control" id="title" name="changepeople.title" type="text"  placeholder="第一指导教师不可变更">
						</div>
				</div>
			#end
				
			<div class="form-group">
				<label for="reason" class="col-sm-3 control-label">变更事由</label>
					<div class="col-sm-8">
						<textarea class="form-control" rows="10" id="reason" name="changepeople.reason" ></textarea>
					</div>
			</div>
			<input type="hidden" name="changepeople.type" value="#(title)" />
			<div class="form-group">
				<div class="col-sm-offset-5 col-sm-5">
					<button type="submit" class="btn btn-default">提交</button>
				</div>
			</div>
						
		</div>
					
		</form>
		
		</div>
		</div>
		
	#end
	#for(y : change)
	#if(y.type == title && projectID == y.projectId)
		<div class="panel panel-primary">
		<div class="panel-heading">
			<h4 class="panel-title">
				<a data-toggle="collapse" data-parent="#accordion" 
				   href="#collapse#(y.projectId)">
					&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp审核状态
				</a>
			</h4>
		</div>
		<div id="collapse#(y.projectId)" class="panel-collapse collapse in">
		<div class="panel-body">
		<form class="form-horizontal" role="form" method="post" action="/student/changePeople" >
			<div class="form-group">
				<label for="project.projectId" class="col-sm-3 control-label" >项目编号</label>
					<div class="col-sm-8">
						<input class="form-control" id="name" name="changepeople.projectId" type="text"  value="#(projectID)" readonly="readonly">
					</div>
			</div>
			<div class="form-group">
				<label for="personsResponsibleName" class="col-sm-3 control-label" >负责人姓名</label>
					<div class="col-sm-8">
						<input class="form-control" id="personsResponsibleName" name="changepeople.personsResponsibleName" type="text"  value="#(session.User.name)" readonly="readonly">
					</div>
			</div>
			<div class="form-group">
				<label for="personsResponsibleNumber" class="col-sm-3 control-label" >负责人学号</label>
					<div class="col-sm-8">
						<input class="form-control" id="personsResponsibleNumber" name="project.personsResponsibleNumber" type="text"  value="#(session.User.userName)" readonly="readonly">
					</div>
			</div>
			#if(title == "团队成员变更申请")
				<div class="form-group">
					<label for="before" class="col-sm-3 control-label" >变更前成员</label>
						<div class="col-sm-8">
							 <textarea class="form-control" rows="2" id="before" name="changepeople.before" readonly="readonly">#(y.before)</textarea>
						</div>
				</div>
				<div class="form-group">
					<label for="after" class="col-sm-3 control-label" >变更后成员</label>
						<div class="col-sm-8">
							 <textarea class="form-control" rows="2" id="after" name="changepeople.after" readonly="readonly">#(y.after)</textarea>
						</div>
				</div>
			#else
				<div class="form-group">
					<label for="before" class="col-sm-3 control-label" >变更前教师</label>
						<div class="col-sm-8">
							 <input class="form-control" id="before" name="changepeople.before" type="text" value="#(y.before)" readonly="readonly" >
						</div>
				</div>
				<div class="form-group">
					<label for="after" class="col-sm-3 control-label" >变更后教师</label>
						<div class="col-sm-8">
							 <input class="form-control" id="after" name="changepeople.after" type="text"  value="#(y.after)" readonly="readonly" >
						</div>
				</div>
				<div class="form-group">
					<label for="title" class="col-sm-3 control-label" >变更后教师职称</label>
						<div class="col-sm-8">
							 <input class="form-control" id="title" name="changepeople.title" type="text"  value="#(y.title)" readonly="readonly">
						</div>
				</div>
			#end
				
			<div class="form-group">
				<label for="reason" class="col-sm-3 control-label">变更事由</label>
					<div class="col-sm-8">
						<textarea class="form-control" rows="10" id="reason" name="changepeople.reason" readonly="readonly">#(y.reason)</textarea>
					</div>
			</div>
			<div class="form-group">
				<label for="check" class="col-sm-3 control-label" >审核结果：</label>
					<div class="col-sm-8">
						<input class="form-control" id="check" name="changepeople.check" type="text"  value="#(y.check)" readonly="readonly">
					</div>
			</div>
			</div>
					
		</div>
					
		</form>
		
		</div>
		</div>
		</div>
	#end
	#end
	</div>
#end